﻿using System;
using System.Runtime.Serialization;

namespace SNX.TestTool.Exceptions
{
    [Serializable]
    public class SnxException : Exception
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="SnxException"/> class.
        /// </summary>
        public SnxException()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="SnxException"/> class.
        /// </summary>
        public SnxException(SerializationInfo serializationInfo, StreamingContext context)
            : base(serializationInfo, context)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="SnxException"/> class.
        /// </summary>
        /// <param name="message">Exception message</param>
        public SnxException(string message)
            : base(message)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="SnxException"/> class.
        /// </summary>
        /// <param name="message">Exception message</param>
        /// <param name="innerException">Inner exception</param>
        public SnxException(string message, Exception innerException)
            : base(message, innerException)
        {
        }
    }
}
